package com.wangijun.yuan.web.model.dto;


import com.wangijun.yuan.core.domain.Article;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;


@Getter
@Setter
public class MainArtQrtParam extends PageParam<Article> {
    @Schema(description = "分类ID")
    private Long categoryId;
    @Schema(description = "话题ID")
    private Long topicId;
    @Schema(description = "标签ID")
    private Long tagId;
    @Schema(description = "排序")
    private OrderByEnum order;


    /**
     * 首页查询标识
     */
    public enum OrderByEnum {
        //最近更新
        edit_time,
        // 最多阅读
        read_num
    }

}
